import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index.js'
import './assets/css/free.css'
/*vuex*/
import store from './store/index.js'
/*引入ant design*/
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import * as Icons from "@ant-design/icons-vue";
/*import 'default-passive-events'*/  // 下拉框默认事件，带上会报错
/*全局引入Excel表格*/
/*import JsonExcel from 'vue-json-excel'*/
/*import VueExcelXlsx from "vue-excel-xlsx";*/
import { message } from 'ant-design-vue';

/*引入file导出文件*/
/*import htmlToExcel from '../src/components/comjs/FielSave.js'
createApp.prototype.htmlToExcels = htmlToExcel;*/


/*设置title*/
router.beforeEach((to,from,next) => {
    if (to.meta.title){
        document.title = to.meta.title
    }
    next()
})


const app = createApp(App)
const icons = Icons;
for(const i in icons){
    app.component(i,icons[i]);
}

app.use(Antd).use(router).use(store).mount('#app');




